<template>
	<view class="container">
		<view class="intro" @click="handleClick">hello 吃早餐！！！</view>
		<text class="intro">详见：</text>
		<uni-link :href="href" :text="href"></uni-link>
		<view class="iconfont icon-54">
		</view>
	</view>
</template>

<script>
	import { getUserProfile,login} from "@/utils/asyncWx.js"
	export default {
		async created() {
			// let result = await this.$request({
			// 	url:"home/swiperdata"
			// });
			// console.log(result);
			// await getUserProfile();
			
		},
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
			}
		},
		methods: {
			handleClick: async function() {
				// let res = await getUserProfile();
				let res = await login();
				console.log(res);
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
